package cn.rkylin.oms.system.log.service;

import cn.rkylin.oms.system.log.dao.ILogDao;
import cn.rkylin.oms.system.log.domain.LogRecord;
import cn.rkylin.core.service.ApolloService;
import cn.rkylin.oms.common.dto.PagedData;
import cn.rkylin.oms.system.log.domain.SearchConditions;
import cn.rkylin.oms.system.shop.vo.ShopVO;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageInfo;

@Service("logService")
public class LogServiceImpl extends ApolloService implements ILogService {

	@Autowired
	private ILogDao logDao;

	@Override
	public PagedData<LogRecord> search(Pageable pageable, SearchConditions conditions) throws Exception {
		return logDao.search(pageable, conditions);
	}
	
    /**
     * 查询
     * 
     * @param shopVO
     */
    public PageInfo<LogRecord> findByWhere(int page, int rows, LogRecord logRecord) throws Exception {
        PageInfo<LogRecord> logRecordList = findPage(page, rows, "pageSelectlog", logRecord);
        return logRecordList;
    }
}
